package o;

import android.graphics.drawable.Drawable;
import android.view.View;
import androidx.coordinatorlayout.widget.CoordinatorLayout;
import java.lang.ref.WeakReference;

public class j extends SkinAttr {

    static final class c extends fkz<SkinAttr, Drawable> {
        private WeakReference<CoordinatorLayout> ˊ;

        public /* synthetic */ void ॱ(Object obj) {
            ˋ((Drawable) obj);
        }

        private c(CoordinatorLayout coordinatorLayout) {
            this.ˊ = new WeakReference(coordinatorLayout);
        }

        public void ˋ(Drawable drawable) {
            CoordinatorLayout coordinatorLayout = (CoordinatorLayout) this.ˊ.get();
            if (coordinatorLayout != null) {
                coordinatorLayout.setStatusBarBackground(drawable);
            }
        }
    }

    public j() {
        this.ˎ = 0;
    }

    public void ˎ(View view, boolean z) {
        if (view instanceof CoordinatorLayout) {
            CoordinatorLayout coordinatorLayout = (CoordinatorLayout) view;
            if ("drawable".equals(this.attrValueTypeName) || "color".equals(this.attrValueTypeName)) {
                this.ʽ = "drawable";
                fks.ˎ(view.getContext(), this, new c(coordinatorLayout)).ॱ(z);
            }
        }
    }
}
